package org.yzh.web.model.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DeviceDO extends BaseDeviceInfo {
    private String imei;
    private Integer state;
    private Boolean online;
    private LocalDateTime deviceTime;
    private LocalDateTime registerTime;
    private LocalDateTime installTime;
    private Boolean bind;
    private Boolean deleted;
    private Integer protocolVersion;
    private String softwareVersion;
    private String hardwareVersion;
    private String deviceModel;
    private String makerId;
    private int cityId;
    private int provinceId;
    private String creator;
    private LocalDateTime createTime;

    public DeviceDO(String deviceId, Boolean online, LocalDateTime deviceTime) {
        super.setDeviceId(deviceId);
        this.online = online;
        this.deviceTime = deviceTime;
    }
}